package com.example.ssmp.contorller.utils;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ProjectExceptionAdvice {

    @ExceptionHandler
    public R doException(Exception e){
        e.printStackTrace();
        return  new R(false,"未知异常请联系管理员");

    }
}
